package com.haiyangwang.selesson;

import lesson1.Team;

public class Main {
    public static <Teacher> void main(String[] args) {
        Student s1=new Student();
        s1.studentName="yang";
        s1.studentNo="01";

        Student s2=new Student();
        s2.studentName="an";
        s2.studentNo="02";

        Student s3=new Student();
        s3.studentName="gao";
        s3.studentNo="03";

        com.haiyangwang.selesson.Teacher teacher=new com.haiyangwang.selesson.Teacher("xiao","javase");
        Team1 team=new Team1();
        team.addStudent(s1,0);
        team.addStudent(s2,1);
        team.addStudent(s3,2);
        team.addStudent(s3,2);
        team.addTeacher((com.haiyangwang.selesson.Teacher) teacher);
        team.listAllStudent();
        team.listAllTeacher();
    }

}
